﻿<UserControl x:Class="Xpom_Xpum__Integrated_Development_Environment.View.Controls.MenuView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="367"
             xmlns:my="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.ViewModel.Controls"
             xmlns:res="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.Resource"
             Height="20" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <my:MenuViewModel x:Key="MenuViewModel"/>
    </UserControl.Resources>
    <Menu Name="menu1">
        <MenuItem Header="{x:Static res:Resource.FileMenuItemText}">
            <MenuItem Header="{x:Static res:Resource.FileNewMenuItemText}" Command="{Binding FileNewClickCommand}" />
            <MenuItem Header="{x:Static res:Resource.FileOpenMenuItemText}" Command="{Binding FileOpenClickCommand}" />
            <MenuItem Header="{x:Static res:Resource.FileReopenMenuItemText}" ItemsSource="{Binding RecentFiles}" Click="MenuItem_Click_25" Visibility="Collapsed">
            </MenuItem>
            <Separator />
            <MenuItem Header="{x:Static res:Resource.FileSaveMenuItemText}" Click="MenuItem_Click_6" IsEnabled="{Binding IsFileOpened}"/>
            <MenuItem Header="{x:Static res:Resource.FileSaveAsMenuItemText}" Click="MenuItem_Click_7" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="{x:Static res:Resource.FileSaveProjectAsMenuItemText}" IsEnabled="{Binding IsProjectOpened}" Visibility="Collapsed" />
            <MenuItem Header="{x:Static res:Resource.FileSaveAllMenuItemText}" Click="MenuItem_Click_8" IsEnabled="{Binding IsFileOpened}" />
            <Separator />
            <MenuItem Header="{x:Static res:Resource.FileCloseMenuItemText}" Click="MenuItem_Click_10" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="{x:Static res:Resource.FileCloseAllMenuItemText}" Click="MenuItem_Click_11" IsEnabled="{Binding IsFileOpened}" />
            <Separator />
            <MenuItem Header="{x:Static res:Resource.FileExitMenuItemText}" Click="MenuItem_Click_12" />
        </MenuItem>
        <MenuItem Header="{x:Static res:Resource.EditMenuItemText}">
            <MenuItem Header="Undo" Click="MenuItem_Click_13" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="Redo" Click="MenuItem_Click_14" IsEnabled="{Binding IsFileOpened}" />
            <Separator />
            <MenuItem Header="Cut" Click="MenuItem_Click_15" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="Copy" Click="MenuItem_Click_16" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="Paste" Click="MenuItem_Click_17" IsEnabled="{Binding IsFileOpened}" />
            <MenuItem Header="Delete" Click="MenuItem_Click_18" IsEnabled="{Binding IsFileOpened}" />
            <Separator />
            <MenuItem Header="Select All" Click="MenuItem_Click_19" IsEnabled="{Binding IsFileOpened}" />
        </MenuItem>
        <MenuItem Header="{x:Static res:Resource.SearchMenuItemText}">
            <MenuItem Header="Find Text..." Click="MenuItem_Click_21" IsEnabled="{Binding IsProjectOpened}" />
            <MenuItem Header="Find Next" IsEnabled="{Binding IsProjectOpened}" Visibility="Collapsed" />
            <MenuItem Header="Find Previous" IsEnabled="{Binding IsProjectOpened}" Visibility="Collapsed" />
            <Separator Visibility="Collapsed" />
            <MenuItem Header="Replace Text..." IsEnabled="{Binding IsProjectOpened}" Visibility="Collapsed" />
            <MenuItem Header="Replace All" IsEnabled="{Binding IsProjectOpened}" Visibility="Collapsed" />
        </MenuItem>
        <!-- <MenuItem Header="{x:Static res:Resource.ViewMenuItemText}">
            <MenuItem Header="Full Screen" />
        </MenuItem> -->
        <MenuItem Header="{x:Static res:Resource.ProjectMenuItemText}">
            <MenuItem Header="Add Script..." Click="MenuItem_Click_9" IsEnabled="{Binding IsProjectOpened}" />
            <MenuItem Header="Add HTML File..." Click="MenuItem_Click_26" IsEnabled="{Binding IsProjectOpened}" />
            <MenuItem Header="Add CSS Style..." Click="MenuItem_Click_27" IsEnabled="{Binding IsProjectOpened}" />
            <Separator />
            <MenuItem Header="Add New Item..." Click="MenuItem_Click_4" IsEnabled="{Binding IsProjectOpened}" />
            <MenuItem Header="Add Existing Item..." Click="MenuItem_Click_23" IsEnabled="{Binding IsProjectOpened}" />
            <Separator />
            <MenuItem Header="Add New Folder" Click="MenuItem_Click_28" IsEnabled="{Binding IsProjectOpened}" />
            <Separator />
            <MenuItem Header="Remove Selected Item" Click="MenuItem_Click_22" IsEnabled="{Binding IsProjectOpened}" />
        </MenuItem>
        <MenuItem Header="{x:Static res:Resource.RunMenuItemText}">
            <MenuItem Header="{x:Static res:Resource.RunDebugMenuItemText}" Visibility="Collapsed" />
            <MenuItem Header="{x:Static res:Resource.RunRunWithNoDebugMenuItemText}" IsEnabled="{Binding IsProjectOpened}" Click="MenuItem_Click_29" />
            <Separator />
            <MenuItem Header="{x:Static res:Resource.RunPackToCRXMenuItemText}" IsEnabled="{Binding IsProjectOpened}" Click="MenuItem_Click_30" />
            <MenuItem Header="{x:Static res:Resource.RunPackToZIPMenuItemText}" Click="MenuItem_Click_24" IsEnabled="{Binding IsProjectOpened}" />
            <Separator />
            <MenuItem Header="{x:Static res:Resource.RunRunSettingsMenuItemText}" Click="MenuItem_Click_5" />
        </MenuItem>
        <!-- <MenuItem Header="{x:Static res:Resource.ToolsMenuItemText}">
            <MenuItem Header="External Tools..." />
            <Separator />
            <MenuItem Header="SDK Options..." />
        </MenuItem> -->
        <MenuItem Header="{x:Static res:Resource.HelpMenuItemText}">
            <MenuItem Header="Xpom-Xpum! Local Documentation" Click="MenuItem_Click_3" />
            <MenuItem Header="Xpom-Xpum! Local Samples Library" Click="MenuItem_Click_20" />
            <Separator />
            <MenuItem Header="Google's Chrome Extensions Documentation" Click="MenuItem_Click" />
            <MenuItem Header="Google's Chrome Extensions Samples" Click="MenuItem_Click_2" />
            <Separator />
            <MenuItem Header="About Xpom-Xpum!" Click="MenuItem_Click_1" />
        </MenuItem>
    </Menu>
</UserControl>
